#ifndef __CONFIG_H__
#define __CONFIG_H__

#define LOAD_ADDRESS 0x98000000

#define MEMORY_NEWLIB_MB           300
#define MEMORY_VITAGL_THRESHOLD_MB 8

#define AUDIO_SAMPLE_RATE     44100
#define AUDIO_SAMPLES_PER_BUF 8192

#define DATA_PATH             "ux0:data/SWD3E"
#define SO_PATH_0             "app0:libSWD3E.so"
#define SO_PATH_1             DATA_PATH "/libSWD3E.so"
#define GAME_SAVE_PATH        DATA_PATH "/Save"
#define GAME_CACHE_PATH       DATA_PATH "/Cache"
#define GAME_SETTING_PATH     DATA_PATH "/Setting"

#define CONFIG_PATH           GAME_SETTING_PATH "/config.bin"
#define LOG_PATH              "ux0:data/SWD3E_log.txt"

#define SCREEN_W   960
#define SCREEN_H   544

typedef struct
{
    uint8_t full_screen; // 0x00
    char reserved[0x3F]; // 0x01
} SettingConfig;         // 0x40

int setDefaultSettingConfig(SettingConfig *config);
int loadSettingConfig(SettingConfig *config);
int saveSettingConfig(SettingConfig *config);

extern SettingConfig setting_config;
extern int language, enter_button;

#endif
